package net.oschina.app.fragment.favorite;

import net.oschina.app.R;
import net.oschina.app.adapter.TabVPAdpater;
import net.oschina.app.fragment.BaseTabPageFragment;
import net.oschina.app.fragment.favorite.favor.FBlogsFragment;
import net.oschina.app.fragment.favorite.favor.FCodeFragment;
import net.oschina.app.fragment.favorite.favor.FConsultFragment;
import net.oschina.app.fragment.favorite.favor.FSoftwareFragment;
import net.oschina.app.fragment.favorite.favor.FTopicFragment;
import net.oschina.app.util.UIUtils;

/**
 * Created by YL on 2017/4/2.
 */
public class FavoriteFragment extends BaseTabPageFragment {
    String[] favoriteTitles = UIUtils.getStrings(R.array.userfavorite);
    @Override
    protected int getFirstItem() {
        return 0;
    }

    @Override
    public void setupTab(TabVPAdpater adpater) {
        adpater.addTab(favoriteTitles[0],FSoftwareFragment.class,null);
        adpater.addTab(favoriteTitles[1],FTopicFragment.class,null);
        adpater.addTab(favoriteTitles[2],FCodeFragment.class,null);
        adpater.addTab(favoriteTitles[3],FBlogsFragment.class,null);
        adpater.addTab(favoriteTitles[4],FConsultFragment.class,null);
    }
}
